package com.xxxx.server.exception;

import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * 全局异常处理
 *
 * @author zhoubin
 * @since 1.0.0
 */
@RestControllerAdvice
public class GlobalException {
/*
	@ExceptionHandler(SQLException.class)
	public RespBean mySqlException(SQLException e){
		System.out.println("进入异常");
		if (e instanceof SQLIntegrityConstraintViolationException){
			return RespBean.error("该数据有关联数据，操作失败！");
		}
		return RespBean.error("数据库异常，操作失败！");
	}*/

}